public class Memento {

    //备忘录本体

    private int noState;
    private String nameState; //状态
    private String phoneState;

    public String getNameState() {
        return nameState;
    }
    public int getNoState() {
        return noState;
    }
    public String getPhoneState() {
        return phoneState;
    }



    Memento(){}
    Memento(Originator originator){
        this.nameState=originator.getCurrentName();
        this.noState=originator.getCurrentNo();
        this.phoneState=originator.getCurrentPhone();
    }

}
